package com.qfedu.cardlikelazy.domain;


import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 名片表
 * @TableName card
 */
@Data
@TableName("card")
@NoArgsConstructor
@AllArgsConstructor
public class Card  {

    public Card(String name, String sex, Date birthday, String company, String position, String mobile, Integer visited) {
        this.name = name;
        this.sex = sex;
        this.birthday = birthday;
        this.company = company;
        this.position = position;
        this.mobile = mobile;
        this.visited = visited;
    }

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别
     */
    private String sex;

    /**
     * 出生日期
     */
    private Date birthday;

    /**
     * 公司
     */
    private String company;

    /**
     * 职位
     */
    private String position;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 访问量
     */
    private Integer visited;



}